import request from '@/utils/request'

const base_url = 'http://localhost:9011/admin/funds'
// 登录接口
export const getFunds = (page, limit, form) => {
  return request({
    url: base_url + '/findAll' + '/' + page + '/' + limit,
    method: 'get',
    params: form,
  })
}

export const getPostFunds = data => {
  return request({
    url: base_url + '/',
    method: 'post',
    data,
  })
}

export const getFundsInfo = id => {
  return request({
    url: base_url + '/getFundsInfo/' + id,
    method: 'get',
  })
}

export const getDeleteFunds = id => {
  return request({
    url: base_url + '/' + id,
    method: 'delete',
  })
}

export const getUpdateState = id => {
  return request({
    url: base_url + '/updateState/' + id,
    method: 'get',
  })
}
